package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Invoice;
import cn.itcast.domain.cargo.InvoiceExample;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface InvoiceService {
    /**
     * 分页查询
     */
    PageInfo<Invoice> findByPage(
            InvoiceExample invoiceExample, int pageNum, int pageSize);

    /**
     * 根据发票ID删除
     * @param invoiceId
     * @return
     */
    void deleteByPrimaryKey(String invoiceId);


    void insert(Invoice record);
    /**
     * 添加
     * @param record
     * @return
     */
    void insertSelective(Invoice record);

    /**
     *查询所有
     * @param example
     * @return
     */
    List<Invoice> selectByExample(InvoiceExample example);

    /**
     * 根据ID查询
     * @param invoiceId
     * @return
     */
    Invoice selectByPrimaryKey(String invoiceId);

    /**
     * 更新
     * @param record
     * @return
     */
    void updateByPrimaryKeySelective(Invoice record);

    void updateByPrimaryKey(Invoice record);
}
